package cn.iocoder.yudao.module.jikong.controller.admin.jkProduct.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import liquibase.pro.packaged.S;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 疾控产品表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class JkProductRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28845")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "样本产品id", example = "11740")
    @ExcelProperty("样本产品id")
    private String productId;

    @Schema(description = "样本产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("样本产品名称")
    private String name;

    @Schema(description = "样本产品分类", example = "18107")
//    @ExcelProperty("样本产品分类")
    private Long typeId;

    @Schema(description = "样本产品分类", example = "18107")
    @ExcelProperty("样本产品分类")
    private String typeName;

    @Schema(description = "启用状态", example = "2")
    @ExcelProperty(value = "启用状态", converter = DictConvert.class)
    @DictFormat("open_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "产品图片")
    @ExcelProperty("产品图片")
    private String picture;

    @Schema(description = "产品详情")
    @ExcelProperty("产品详情")
    private String detail;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "项目id", example = "1")
    private Long projectId;

    @Schema(description = "规格id", example = "1")
    private Long sizeId;

    private Long resourceId;

    private String projectName;

    private String sizeName;

    private String resourceName;

    @Schema(description = "序列号")
    @ExcelProperty("序列号")
    private String no;

    @Schema(description = "条形码")
    @ExcelProperty("条形码")
    private String code;

    @Schema(description = "储存器皿")
    @ExcelProperty("储存器皿")
    private String storageVessel;

    @Schema(description = "课题")
    @ExcelProperty("课题")
    private String researchTopic;

    @Schema(description = "菌种名称", example = "李四")
    @ExcelProperty("菌种名称")
    private String strainName;

    @Schema(description = "病原名称", example = "芋艿")
    @ExcelProperty("病原名称")
    private String pathogenName;

    @Schema(description = "是否噬菌")
    @ExcelProperty("是否噬菌")
    private String bacteriophagy;

    @Schema(description = "保藏人")
    @ExcelProperty("保藏人")
    private String depositor;

    @Schema(description = "真实姓名", example = "张三")
    @ExcelProperty("真实姓名")
    private String realName;

    @Schema(description = "年龄")
    @ExcelProperty("年龄")
    private String age;

    @Schema(description = "身份证号")
    @ExcelProperty("身份证号")
    private String idNum;

    @Schema(description = "采样日期")
    @ExcelProperty("采样日期")
    private LocalDateTime samplingDate;

    @Schema(description = "病原级别")
    @ExcelProperty("病原级别")
    private String pathogenLevel;

    @Schema(description = "检测样本类型", example = "1")
    @ExcelProperty("检测样本类型")
    private String sampleType;

    @Schema(description = "检测结果")
    @ExcelProperty("检测结果")
    private String testResults;

    @Schema(description = "采样人")
    @ExcelProperty("采样人")
    private String samplingPersonnel;

    @Schema(description = "检测人")
    @ExcelProperty("检测人")
    private String inspector;

    @Schema(description = "检测日期")
    @ExcelProperty("检测日期")
    private LocalDateTime testDate;

    @Schema(description = "样本数据")
    @ExcelProperty("样本数据")
    private String productData;

}
